import request from "./index.js"
// 老师获取毕业论文(初稿)列表
export function getTeacherPaperOriginalByPage(data) {
  return request({
    method:'post',
    url: '/documents/teacher/paper-original/page',
    data
  })
}
// 老师获取毕业论文(初稿)总数
export function getTeacherPaperOriginalTotal() {
  return request({
    method:'get',
    url: '/documents/teacher/paper-original/total', 
  })
}

// 老师评审指定 id 的毕业论文(初稿)
export function reviewPaperOriginalById(data) {
  return request({
    method:'post',
    url: '/documents/teacher/paper-original/review',
    data
  })
}

 // 老师撤销评审指定 id 的毕业论文(初稿)
 export function teacherCancelCheckPaperOriginalById(id) {
  return request({
    method:'get',
    url: `/documents/teacher/paper-original/cancel/${id}` 
  })
} 
// 学生获取个人毕业论文(初稿)
export function getStudentPaperOriginal() {
  return request({
    method:'get',
    url: '/documents/student/paper-original' 
  })
}

// 学生提交个人毕业论文(初稿)
export function studentAddPaperOriginal(data) {
  return request({
    method:'post',
    url: '/documents/student/paper-original/add',
    data
  })
}

// 学生修改个人毕业论文(初稿)
export function studentUpdatePaperOriginal(data) {
  return request({
    method:'post',
    url: '/documents/student/paper-original/update',
    data
  })
} 